module.exports={
  entry:__dirname+"/app/index.js",
  output:{
    filename:"boundle.js",
    path:__dirname+"/public/"
  },
  module:{
    rules:[
      {
        test:/\.js$/,
        use:[{
          loader:"babel-loader"
        }],
        exclude:/node_modules/
      },

      {
        test:/\.less$/,
        use:["style-loader","css-loader","less-loader","autoprefixer-loader"]
    },
    {
      test: /\.jpeg$/,
      use: 'url-loader?limit=1024&name=[path][name].[ext]&outputPath=img/&publicPath=output/',
    }
    ]
  }
}
